//
//  SuperviseTaskRecordItemVC.swift
//  SBSafetyApp
//
//  Created by Lina on 2023/1/10.
//
// 【首页-检查监督】检查任务-整改说明

import Foundation
import UIKit

class SuperviseTaskRecordItemVC: SubLevelViewController {
    
    let taskV = SuperviseTaskRecordItemView()

    var modal: SpRwbgtzZgjlModal!
    
    init(modal: SpRwbgtzZgjlModal!) {
        super.init(nibName: nil, bundle: nil)
        self.modal = modal
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        title = "整改详情"
        navigationController?.navBarStyle(.white)
        view.backgroundColor = .bg
        
        setupUI()
        
        taskV.reload(withModal: modal)
    }
    
    // MARK: - Setup
    
    func setupUI() {
        view.addSubview(taskV)
        taskV.snp.makeConstraints { make in
            make.top.equalTo(view.safeAreaLayoutGuide.snp.top)
            make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom)
            make.left.right.equalToSuperview()
        }
    }
}
